#include "EWAPrjFragmentType.hpp"

namespace Eyer
{
    EWAPrjFragmentType EWAPrjFragmentType::UNKNOW   (0, "UNKNOW");
    EWAPrjFragmentType EWAPrjFragmentType::TIMELINE (1, "TIMELINE");
    EWAPrjFragmentType EWAPrjFragmentType::RESOURSE (2, "RESOURSE");

    EWAPrjFragmentType::EWAPrjFragmentType(int _id, const EyerString & _typeName)
        : id (_id)
        , typeName (_typeName)
    {

    }

    EWAPrjFragmentType::EWAPrjFragmentType(const EWAPrjFragmentType & _type)
    {
        *this = _type;
    }

    EWAPrjFragmentType::~EWAPrjFragmentType()
    {

    }

    EWAPrjFragmentType & EWAPrjFragmentType::operator = (const EWAPrjFragmentType & _type)
    {
        id = _type.id;
        typeName = _type.typeName;
        return *this;
    }

    bool EWAPrjFragmentType::operator == (const EWAPrjFragmentType & _type) const
    {
        return id == _type.id;
    }

    bool EWAPrjFragmentType::operator != (const EWAPrjFragmentType & _type) const
    {
        return id != _type.id;
    }

    const EyerString & EWAPrjFragmentType::GetName() const
    {
        return typeName;
    }
}